package com.lightsaber.trade.cloth.rest.resources;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import com.lightsaber.trade.cloth.rest.data.ProgrammeDetails;
import com.lightsaber.trade.cloth.rest.data.ProgrammePlannedPlaces;

@Path("/restful")
public interface RestfulResources {
    @GET
    public String sayHi();

    @POST
    @Path("/getProgrammeDetails")
    @Produces("application/xml")
    @Consumes("application/xml")
    public ProgrammeDetails getProgrammeDetails(@PathParam("launchYear") int launchYear,
            @PathParam("launchVersion") String launchVersion,
            @PathParam("programmeCode") String programmeCode);

    @POST
    @Path("/getProgrammePlannedPlaces")
    @Produces("application/xml")
    @Consumes("application/xml")
    public ProgrammePlannedPlaces getProgrammePlannedPlaces(
            @PathParam("planningExercise") int planningExercise,
            @PathParam("planYear") int planYear, @PathParam("yearOfStudy") int yearOfStudy,
            @PathParam("programmeCode") String programmeCode,
            @PathParam("launchYear") int launchYear,
            @PathParam("launchVersion") String launchVersion,
            @PathParam("operatingCampus") String operatingCampus,
            @PathParam("operatingDepartment") String operatingDepartment);
}
